class ApplicationController < ActionController::Base
  protect_from_forgery
  def get_errors(object)
    str_error = ""
    object.errors.each do |attr, message|
      if !message.include?("can't be blank") and !message.include?("is invalid")
        str_error = str_error + message + "<br/>"
      end
    end
    return str_error
  end
end
